home *** CD-ROM | disk | FTP | other *** search
- Path: access1.digex.net!not-for-mail
- From: ell@access1.digex.net (Ell)
- Newsgroups: comp.lang.c++
- Subject: Re: Struct as default arg?
- Date: 27 Jan 1996 05:04:25 GMT
- Organization: The Universe
- Message-ID: <4ecbop$5t5@news4.digex.net>
- References: <rplDLrDFr.35K@netcom.com> <4e94or$5nu@colossus.holonet.net>
- NNTP-Posting-Host: access1.digex.net
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Russell Blackadar (russell@news.mdli.com) wrote:
- : Robert Laudati (rpl@netcom.com) wrote:
- : : I would like to use a structure as a default args as follows:
- : :
- : : typedef struct { double x; double y; } Point;
-
- : Also, in C++, you can write
- :
- : struct Point { double x; double y; };
- :
- : which IMO is preferable to a typedef, stylistically.
-
- The immediately above example struct declaration is also the standard C
- one.
-
- Elliott
-
-